const path = require('path');
const fs = require('fs');

module.exports = {
	yinhe: {
		orgid: '899CCFE0F40948C2B33B0CBD942287EC',//机构id
		iconsDir: path.join(__dirname, './yinhe'),//APP图标所在文件路径
		removeIconsDir: 'E:/海药多/海药通-uni版本/unpackage/res/icons',//需要删除的之前APP图标的路径。
		name: "河南海王银河app打包",//名称，用来在CMD中显示对应的名称
		packCommand: path.join(__dirname,'./pack.bat'),//打包的bat文件路径
		manifestPath: 'E:/海药多/海药通-uni版本/manifest.json',//manifest.json文件路径
		customer:function(){//自定义修改对应的配置信息。
			//修改配置文件
			var filePath = 'E:/海药多/海药通-uni版本/util/config/app-config.js';
			var ff =fs.readFileSync(filePath,"utf8");
			var reg = /defaultOrgId(.+)/;
			var data = ff.replace(reg,'defaultOrgId = "899CCFE0F40948C2B33B0CBD942287EC" ;');
			fs.writeFileSync(filePath,data,'utf8');
		}
	},
	hengfeng: {
		orgid: '80d95560e7b548a7a77a2133209028d5',
		iconsDir: path.join(__dirname, './hengfeng'),
		removeIconsDir: 'E:/海药多/海药通-uni版本/unpackage/res/icons',
		name: "安阳恒峰app打包",
		packCommand: path.join(__dirname,'./pack.bat'),
		manifestPath: 'E:/海药多/海药通-uni版本/manifest.json',
		customer:function(){
			//修改配置文件
			var filePath = 'E:/海药多/海药通-uni版本/util/config/app-config.js';
			var ff =fs.readFileSync(filePath,"utf8");
			var reg = /defaultOrgId(.+)/;
			var data = ff.replace(reg,'defaultOrgId = "80d95560e7b548a7a77a2133209028d5" ;');
			fs.writeFileSync(filePath,data,'utf8');
		}
	}
}
